<template>
	<view class="transfer l-whitespace">
		<view class="transfer-ewm">
			<view class="transfer-ewm-r">
				<van-cell-group>
				  <van-field
					:value="scanCode"
					clearable
					placeholder="请输入钱包地址"
					:border="false"
					@change="onChange"
				  >
				  	<view 
					@click="onScanCode"
						slot="left-icon"
						class="icon-btn iconfont icon-sao">
				  	</view>
				  </van-field>
				</van-cell-group>
			</view>
		</view>
		<view class="transfer-tab">
			<van-tabs @click="onClick" color="#3286f1">
			  <van-tab title="积分">
				  <integral></integral>
			  </van-tab>
			  <van-tab title="WNCT">
				  <wnct></wnct>
				  </van-tab>
			</van-tabs>
		</view>
		<view class="paly-btn">
			<van-button square type="primary" size="large" custom-class="paly-btn-bg">支付</van-button>
		</view>
	</view>
</template>

<script>
	import integral from "./integral.vue"
	import wnct from "./wnct.vue"
	
	export default {
		data() {
			return {
				scanCode: ''
			}
		},
		onLoad() {

		},
		methods: {
			onChange () {},
			onClick () {
				
			},
			onScanCode () {
				uni.scanCode({
					onlyFromCamera: true,
					success: (res) => {
						this.scanCode = res.result
					}
				});
			}
		},
		components: {
		 wnct,
		 integral
		},
		
	}
</script>

<style scoped lang="scss">
	@import '../../../common/trade.scss';
</style>
